import 'package:json_annotation/json_annotation.dart';

import 'user_info.dart';

part 'login_result.g.dart';

@JsonSerializable(explicitToJson: true)
class LoginResult {
  LoginResult(this.userInfo);

  @JsonKey(name: 'user_info')
  UserInfo? userInfo;

  factory LoginResult.fromJson(Map<String, dynamic> json) => _$LoginResultFromJson(json);

  Map<String, dynamic> toJson() => _$LoginResultToJson(this);
}
